Skip to content

apollo-parser@0.7.4#749

Merged
goto-bus-stop merged 1 commit intomainfrom
apollo-parser@0.7.4
Nov 17, 2023
Merged

apollo-parser@0.7.4#749
goto-bus-stop merged 1 commit intomainfrom
apollo-parser@0.7.4

Conversation

@goto-bus-stop
Copy link
Member

Features

  • parse_type parses a selection set with optional outer brackets - lrlna, pull/718 fixing issue/715
    This returns a SyntaxTree<Type> which instead of .document() -> cst::Document
    has .type() -> cst::Type.
    This is intended to parse the string value of a @field(type:) argument
    used in some Apollo Federation directives.
    let source = r#"[[NestedList!]]!"#;
    
    let parser = Parser::new(source);
    let cst: SyntaxTree<cst::Type> = parser.parse_type();
    let errors = cst.errors().collect::<Vec<_>>();
    assert_eq!(errors.len(), 0);

Fixes

  • Input object values can be empty - goto-bus-stop, pull/745 fixing issue/744
    apollo-parser version 0.7.3 introduced a regression where empty input objects failed to parse.
    This is now fixed.

    { field(argument: {}) }

@goto-bus-stop goto-bus-stop merged commit 721e075 into main Nov 17, 2023
@goto-bus-stop goto-bus-stop deleted the apollo-parser@0.7.4 branch November 17, 2023 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants